<template>
  <div>
    <div ref="mapBox" style="width: 100%; height: 100%;"></div>
  </div>
</template>

<script>
import * as echarts from 'echarts'
import option from './option'

export default {
  mounted() {
    this.initEchartMap()
  },
  methods: {
    initEchartMap() {
      const myChart = echarts.init(this.$refs.mapBox)
      myChart.setOption(option)
    }
  }
}
</script>

<style lang="less" scoped></style>
